import QtQuick 2.0

Image {
    id: tree
    source: "qrc:/images/tree.png"
    property alias rect: rectScore

    property real globalX: tree.x
    property real globalY: tree.y

//    Rectangle{
//        anchors.fill: parent
//        color: "blue"
//        opacity: 0.3
//    }

    Rectangle{
        id: rectScore
        width: 30
        height: _HEIGHT*2
        color: "red"
        anchors.horizontalCenter: parent.horizontalCenter
        y: -_HEIGHT
        opacity: 0

        property real globalX: rectScore.x + tree.x
        property real globalY: rectScore.y + tree.y
        property bool enabledScore: true
    }
}
